#ifndef _BUOLA_CV_FEATURES_CFEATUREVIEW_H_
#define _BUOLA_CV_FEATURES_CFEATUREVIEW_H_

#include <buola/widgets/cimagebox.h>
#include <buola/cv/features/cfeatureset.h>
#include <buola/cv/features/cmatch.h>

namespace buola { namespace cvi {

class CFeatureView : public gui::CImageBox
{
public:
    CFeatureView();
    ~CFeatureView();

public:
    virtual void OnExpose(const gui::CExposeEvent &pE);
    virtual void OnKeyDown(const gui::CKeyEvent &pE);
    
    void SetFeatures(CFeatureSet &&pSet);
    void SelectFeature(int pIndex);
    
protected:
    CFeatureSet mFeatureSet;
    int mIndex;
};

typedef intrusive_ptr<CFeatureView> PFeatureView;

/*namespace cvi*/ } /*namespace buola*/ }

#endif
